package com.ruoyi.project.jsrh.news.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 资讯所属类别对象 zt_news_type
 * 
 * @author ruoyi
 * @date 2020-06-09
 */
public class ZtNewsType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，自增长 */
    private Long newsTypeId;

    /** 资讯分类名称 */
    @Excel(name = "资讯分类名称")
    private String newsTypeName;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 新闻分类封面图 */
    @Excel(name = "新闻分类封面图")
    private String coverImg;

    /** 状态：1：正常，0：禁用，2：删除 */
    @Excel(name = "状态：1：正常，0：禁用，2：删除")
    private Integer status;

    /** $column.columnComment */
    @Excel(name = "状态：1：正常，0：禁用，2：删除")
    private Long categoryType;

    public void setNewsTypeId(Long newsTypeId) 
    {
        this.newsTypeId = newsTypeId;
    }

    public Long getNewsTypeId() 
    {
        return newsTypeId;
    }
    public void setNewsTypeName(String newsTypeName) 
    {
        this.newsTypeName = newsTypeName;
    }

    public String getNewsTypeName() 
    {
        return newsTypeName;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setCoverImg(String coverImg) 
    {
        this.coverImg = coverImg;
    }

    public String getCoverImg() 
    {
        return coverImg;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setCategoryType(Long categoryType) 
    {
        this.categoryType = categoryType;
    }

    public Long getCategoryType() 
    {
        return categoryType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("newsTypeId", getNewsTypeId())
            .append("newsTypeName", getNewsTypeName())
            .append("code", getCode())
            .append("coverImg", getCoverImg())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("categoryType", getCategoryType())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
